<nz-card nzTitle="生产计划列表" [nzExtra]="extraTemplate">


  <nz-table #basicTable [nzData]="pl"  [nzScroll]="{ x: '2000px', y: '520px' }" >
    <thead>
    <tr>
      <th>生产批次号</th>
      <th nzWidth="180px">生产名称</th>
      <th>计划产出数量(包)</th>
      <th>实际产出数量（包）</th>

      <th nzWidth="150px">计划咖啡生豆用量（公斤）</th>
      <th nzWidth="150px">实际咖啡生豆用量（公斤）</th>
      <th>计划包材用量（包）</th>
      <th>实际包材用量（包）</th>

      <th>计划日期</th>

      <th nzWidth="400px"> 操作</th>

    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of basicTable.data">
      <td>{{data.scpch}}</td>
      <td>{{data.scmc}}</td>
      <td>{{data.jhscsl}} </td>
      <td>{{data.sjscsl}} </td>
      <td>{{data.jhsdyl}} </td>
      <td>{{data.sjsdyl}} </td>
      <td>{{data.jhbcsl}} </td>
      <td>{{data.sjbcsl}} </td>
     <!-- <td>{{data.hbdh|sixword}}</td>
      <td>{{data.fjdh|sixword}}</td>
      <td>{{data.jydh|sixword}}</td>
      <td>{{data.bcdh|sixword}}</td>
      <td>{{data.fzdh|sixword}}</td>
      <td>{{data.rkdh|sixword}}</td>-->
      <td>{{data.jhrq}}</td>

      <td>
        <!--   <a nz-button nzType="dashed">原料调拨</a>
           <nz-divider nzType="vertical"></nz-divider>
           <a>Delete</a>-->
        <button nz-button nzType="primary" (click)="update(data.proplanid)">修改</button>
        &nbsp;
        <button nz-button nzType="primary" (click)="sdck(data)">生豆出库</button>
        &nbsp;
        <button nz-button nzType="primary" (click)="bcck(data)">包材出库</button>
        &nbsp;
        <button nz-button nzType="danger" (click)="delete(data.proplanid)">删除</button>

      </td>
    </tr>
    </tbody>
  </nz-table>


</nz-card>
<ng-template #extraTemplate>
  <a nz-button nzType="primary" (click)="add()">添加</a>
</ng-template>
